// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity.p_a;

import android.content.Context;
import android.view.*;
import android.widget.BaseAdapter;
import com.nnee.p_fk.cls_ActivityEx;
import com.nnee.p_pr.p_activity.p_view.PrisArticleView;
import com.nnee.p_pr.p_atom.cls_b;
import com.nnee.p_pr.p_atom.cls_u;
import com.nnee.p_pr.p_prot.cls_d;
import java.util.LinkedList;

public class cls_s extends BaseAdapter
{

    public cls_s(Context context, int i, cls_b b1, String s1, cls_d d1, String s2, boolean flag)
    {
        g = null;
        g = d1;
        a = i;
        b = b1;
        c = s1;
        d = s2;
        f = flag;
        h = (LayoutInflater)context.getSystemService("layout_inflater");
        e = ((ActivityEx)context).p();
    }

    public int getCount()
    {
        int i;
        if(g == null || g.h == null)
            i = 0;
        else
            i = g.h.size();
        return i;
    }

    public Object getItem(int i)
    {
        return null;
    }

    public long getItemId(int i)
    {
        return (long)i;
    }

    public View getView(int i, View view, ViewGroup viewgroup)
    {
        cls_u u1 = (u)g.h.get(i);
        int j;
        cls_PrisArticleView prisarticleview;
        if(u1 == null)
            j = 256;
        else
        if(u1.O())
            j = u1.av();
        else
            j = 256;
        if(view != null && (view instanceof cls_PrisArticleView))
            cls_PrisArticleView = (PrisArticleView)view;
        else
            cls_PrisArticleView = (PrisArticleView)h.inflate(0x7f030022, viewgroup, false);
        prisarticleview.b(a);
        prisarticleview.c(j);
        prisarticleview.a(b);
        prisarticleview.a(i);
        prisarticleview.a(u1);
        prisarticleview.a(g);
        prisarticleview.c(c);
        prisarticleview.d(d);
        prisarticleview.a(true);
        prisarticleview.e(e);
        prisarticleview.b(f);
        if(f)
            f = false;
        return prisarticleview;
    }

    private int a;
    private cls_b b;
    private final String c;
    private final String d;
    private final String e;
    private boolean f;
    private cls_d g;
    private LayoutInflater h;
}
